﻿namespace HynuIOTA.Web.Models
{
    using System.Collections.Generic;

    public class EasyUITreeNode
    {
        /// <summary>
        /// 绑定节点的标识值
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 显示的节点文本
        /// </summary>
        public string text { get; set; }

        /// <summary>
        /// 显示的节点图标CSS类
        /// </summary>
        public string iconCls { get; set; }

        /// <summary>
        /// 节点状态，'open' 或 'closed'
        /// </summary>
        public string state { get; set; } = "open";

        /// <summary>
        /// 节点是否被选中（此属性只有复选框节点才有）
        /// </summary>
        public bool @checked { get; set; }

        /// <summary>
        /// 绑定该节点的自定义属性
        /// </summary>
        public object attributes { get; set; }

        /// <summary>
        /// 子节点集合
        /// </summary>
        public List<EasyUITreeNode> children { get; set; }
    }
}